package cn.hchaojie.javase.day05;

import org.junit.Test;

public class TestPerson {
	@Test
	public void test() {
		Person person = new Person();
		// System.out.println(person.name);
		
		String name = person.getName();
		System.out.println(name);
		
		name = "张三";
		System.out.println(person.getName());
		
		person.setName("");
		
		person.name = "";
		System.out.println("++++++" + person.getName());
		
		person.setGender('女');
		
		
		Person p2 = new Person();
		p2.setGender('男');
//		
//		Person person1 = new Person("张三");
//		Person person2 = new Person("李四");
	}
}
